(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/xgadmin/admin_center" ], {
    "048e": function(e, t, n) {
        "use strict";
        n.r(t);
        var a = n("d81f7"), i = n("3418");
        for (var o in i) "default" !== o && function(e) {
            n.d(t, e, function() {
                return i[e];
            });
        }(o);
        n("b6de");
        var r = n("f0c5"), s = Object(r.a)(i.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        t.default = s.exports;
    },
    1013: function(e, t, n) {},
    3418: function(e, t, n) {
        "use strict";
        n.r(t);
        var a = n("c917"), i = n.n(a);
        for (var o in a) "default" !== o && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(o);
        t.default = i.a;
    },
    4979: function(e, t, n) {
        "use strict";
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("4e1e"), t(n("66fd")), e(t(n("048e")).default);
        }).call(this, n("543d").createPage);
    },
    b6de: function(e, t, n) {
        "use strict";
        var a = n("1013");
        n.n(a).a;
    },
    c917: function(e, t, n) {
        "use strict";
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var n = {
                data: function() {
                    return {
                        graceFullLoading: !0,
                        showBack: !1,
                        name: "",
                        nickname: "",
                        classes: [ {
                            icon: "xmo2o-dingdan4",
                            txt: "服务订单",
                            smallTxt: "Font",
                            bgColor: "#6DCD70",
                            path: "/xg_o2o/xgadmin/xgadmin",
                            openType: "navigate"
                        }, {
                            icon: "xmo2o-youhuiquan",
                            txt: "优惠码管理",
                            smallTxt: "Theme",
                            bgColor: "#F596DB",
                            path: "/xg_o2o/xgadmin/admin_coupon",
                            openType: "navigate"
                        }, {
                            icon: "xmo2o-tianjiashebei",
                            txt: "发单",
                            smallTxt: "Mall",
                            bgColor: "#4D5CBC",
                            path: "/xg_o2o/xgadmin/admin_add",
                            openType: "navigate"
                        }, {
                            icon: "xmo2o-dingdan2",
                            txt: "次卡管理",
                            smallTxt: "Message",
                            bgColor: "#DCD64E",
                            path: "/xg_o2o/xgadmin/admin_cardorder",
                            openType: "navigate"
                        }, {
                            icon: "xmo2o-renyuanjietinglianjietianjia",
                            txt: "师傅管理",
                            smallTxt: "Card",
                            bgColor: "#C4A6FB",
                            path: "/xg_o2o/xgadmin/admin_personnel",
                            openType: "navigate"
                        }, {
                            icon: "xmo2o-fenxiaoshang",
                            txt: "分销商管理",
                            smallTxt: "Lady",
                            bgColor: "#9CDDEA",
                            path: "/xg_o2o/xgadmin/admin_distribution",
                            openType: "navigate"
                        }, {
                            icon: "xmo2o-shangpin1",
                            txt: "商城订单",
                            smallTxt: "Lady",
                            bgColor: "#EC3A4E",
                            path: "/xg_o2o/xgadmin/admin_creditorder",
                            openType: "navigate"
                        } ],
                        sharetitle: "",
                        shareimg: "",
                        dsharetitle: "",
                        dshareimg: "",
                        attach: "",
                        teckname: "",
                        orderCount: [],
                        icon: [],
                        iconStyle: 0
                    };
                },
                onLoad: function(e) {
                    var t = getCurrentPages();
                    this.showBack = t.length > 1, this.getAdmin();
                },
                onShareAppMessage: function(e) {
                    if ("button" === e.from) {
                        if ("personnel" === e.target.id) return {
                            title: this.sharetitle ? this.sharetitle : "诚邀加盟，共创辉煌！",
                            path: "/xg_o2o/personnel/personnel_apply",
                            imageUrl: this.shareimg ? this.shareimg : "../../static/share/share.jpg"
                        };
                        if ("distribution" === e.target.id) return {
                            title: this.dsharetitle ? this.dsharetitle : "邀您成为分销商，共创辉煌！",
                            path: "/xg_o2o/distribution/distribution",
                            imageUrl: this.dshareimg ? this.dshareimg : "../../static/share/share.jpg"
                        };
                    }
                    return {
                        title: this.sharetitle ? this.sharetitle : "诚邀加盟，共创辉煌！",
                        path: "/xg_o2o/personnel/personnel_apply",
                        imageUrl: this.shareimg ? this.shareimg : "../../static/share/share.jpg"
                    };
                },
                methods: {
                    getAdmin: function() {
                        var t = this;
                        e.removeStorageSync("toadmin");
                        var n = this.$xSign.sign("v4admin_center");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4admin_center",
                            data: {
                                xgsign: n,
                                op: "center"
                            },
                            success: function(e) {
                                var n = JSON.parse(t.$Decrypt(e.data.data));
                                t.iconStyle = n.iconstyle, t.name = n.name, t.nickname = n.nickname, t.classes[4].txt = n.teckname + "管理", 
                                t.classes[3].txt = n.cardname + "管理", t.attach = n.attach, t.teckname = n.teckname, 
                                t.shareimg = n.shareimg, t.dshareimg = n.dshareimg, t.sharetitle = n.sharetitle, 
                                t.dsharetitle = n.dsharetitle, t.orderCount = [ [ n.ordercount[0], "", "全部订单数" ], [ n.ordercount[1], "", "未派单" ], [ n.ordercount[3], "", "未完成" ], [ n.ordercount[2], "", "已完成" ] ], 
                                t.icon = n.icon, t.classes[3].txt = n.cardname + "管理", t.classes[4].txt = n.teckname + "管理", 
                                setTimeout(function() {
                                    t.graceFullLoading = !1;
                                }, 200);
                            },
                            fail: function(t) {
                                e.showToast({
                                    title: t.data.message,
                                    icon: "none"
                                }), setTimeout(function() {
                                    e.reLaunch({
                                        url: "../index/index"
                                    });
                                }, 1200);
                            }
                        });
                    }
                }
            };
            t.default = n;
        }).call(this, n("543d").default);
    },
    d81f7: function(e, t, n) {
        "use strict";
        n.d(t, "b", function() {
            return i;
        }), n.d(t, "c", function() {
            return o;
        }), n.d(t, "a", function() {
            return a;
        });
        var a = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceFullLoading: function() {
                return n.e("graceUI/components/graceFullLoading").then(n.bind(null, "7669"));
            },
            graceBoxBanner: function() {
                return n.e("graceUI/components/graceBoxBanner").then(n.bind(null, "b5e7"));
            }
        }, i = function() {
            this.$createElement, this._self._c;
        }, o = [];
    }
}, [ [ "4979", "common/runtime", "common/vendor" ] ] ]);